package com.moss.cloud.base.api.model.from;

import com.moss.cloud.base.api.model.vo.FlowTaskVO;
import com.moss.cloud.common.core.annotation.document.ApiComment;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiComment("业务流程表单参数")
public class FlowBusinessFrom implements Serializable {
    private Long id;
    /**
     * 流程分组ID
     */
    @ApiComment(value = "流程分组ID", required = true)
    @NotNull(message = "流程分组ID不能为空")
    private Long flowGroupId;
    /**
     * 模型表单原始数据
     */
    @ApiComment(value = "模型表单原始数据", required = true)
    @NotBlank(message = "模型表单原始数据不能为空")
    private String originalFormData;
    /**
     * 模型表单数据
     */
    @ApiComment(value = "模型表单数据", required = true)
    @NotBlank(message = "模型表单数据不能为空")
    private String formData;
    /**
     * 流程模型ID
     */
    @ApiComment(value = "流程模型ID", required = true)
    @NotNull(message = "流程模型ID不能为空")
    private Long flowModelId;
    /**
     * 流程任务
     */
    @ApiComment(value = "流程任务", required = true)
    @NotEmpty(message = "流程任务不能为空")
    private List<FlowTaskVO> nodeTasks;

}
